package com.atguigu.day211103.exer;

public class Employee {
    private int id;
    private String name;
    private double salary;
    private char sex;

    public Employee() {
    }

    public Employee(int id, String name, double salary, char sex) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.sex = sex;
    }


    public String getInfo() {
        return "id" + id + "名字" + name + "工资" + salary + "性别" + sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}
